package com.zm.utils;

import org.springframework.security.crypto.bcrypt.BCrypt;

public class PasswordUtils {
    public static String hashpw(String pw) {
        return BCrypt.hashpw(pw,BCrypt.gensalt());
    }

    public static Boolean checkpw(String pw, String dbPw) {
        return BCrypt.checkpw(pw,dbPw);
    }
}
